package com.find.answer.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.find.answer.domain.dto.DishDto;
import com.find.answer.domain.dto.PageDto;
import com.find.answer.domain.po.Dish;

import java.util.List;

/**
 * @author Seon
 * @date 2022/10/25 15:20
 */
public interface DishService extends IService<Dish> {

    Page<DishDto> getDishDtoPage(PageDto answer, String name);
    boolean saveWithFlavors(DishDto dishDto);

    DishDto getWithFlavors(Long dishId);

    boolean updateWithFlavors(DishDto dishDto);

    boolean deleteWithFlavors(List<Long> ids);
}
